.class public Lcom/zuiapps/suite/utils/activity/ActivityUtil;
.super Ljava/lang/Object;
.source "ActivityUtil.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static convertActivityFromTranslucent(Landroid/app/Activity;)V
    .registers 7
    .param p0, "activity"    # Landroid/app/Activity;

    .prologue
    .line 20
    const/4 v3, 0x1

    :try_start_1
    new-array v0, v3, [Ljava/lang/Class;

    const/4 v3, 0x0

    const/4 v4, 0x0

    aput-object v4, v0, v3

    .line 21
    .local v0, "c":[Ljava/lang/Class;
    const-class v3, Landroid/app/Activity;

    const-string v4, "convertFromTranslucent"

    invoke-virtual {v3, v4, v0}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 22
    .local v1, "method":Ljava/lang/reflect/Method;
    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Ljava/lang/reflect/Method;->setAccessible(Z)V

    .line 23
    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    const/4 v5, 0x0

    aput-object v5, v3, v4

    invoke-virtual {v1, p0, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1d
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1d} :catch_1e

    .line 27
    .end local v0    # "c":[Ljava/lang/Class;
    .end local v1    # "method":Ljava/lang/reflect/Method;
    :goto_1d
    return-void

    .line 24
    :catch_1e
    move-exception v2

    .line 25
    .local v2, "t":Ljava/lang/Throwable;
    const-string v3, ""

    const-string v4, "convertActivityFromTranslucent"

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1d
.end method

.method public static convertActivityToTranslucent(Landroid/app/Activity;)V
    .registers 10
    .param p0, "activity"    # Landroid/app/Activity;

    .prologue
    const/4 v5, 0x0

    .line 39
    :try_start_1
    const-class v6, Landroid/app/Activity;

    invoke-virtual {v6}, Ljava/lang/Class;->getDeclaredClasses()[Ljava/lang/Class;

    move-result-object v0

    .line 40
    .local v0, "classes":[Ljava/lang/Class;, "[Ljava/lang/Class<*>;"
    const/4 v4, 0x0

    .line 41
    .local v4, "translucentConversionListenerClazz":Ljava/lang/Class;, "Ljava/lang/Class<*>;"
    array-length v6, v0

    :goto_9
    if-ge v5, v6, :cond_1d

    aget-object v1, v0, v5

    .line 42
    .local v1, "clazz":Ljava/lang/Class;
    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v7

    const-string v8, "TranslucentConversionListener"

    invoke-virtual {v7, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v7

    if-eqz v7, :cond_1a

    .line 43
    move-object v4, v1

    .line 41
    :cond_1a
    add-int/lit8 v5, v5, 0x1

    goto :goto_9

    .line 46
    .end local v1    # "clazz":Ljava/lang/Class;
    :cond_1d
    const-class v5, Landroid/app/Activity;

    const-string v6, "convertToTranslucent"

    const/4 v7, 0x1

    new-array v7, v7, [Ljava/lang/Class;

    const/4 v8, 0x0

    aput-object v4, v7, v8

    invoke-virtual {v5, v6, v7}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 47
    .local v2, "method":Ljava/lang/reflect/Method;
    const/4 v5, 0x1

    invoke-virtual {v2, v5}, Ljava/lang/reflect/Method;->setAccessible(Z)V

    .line 48
    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    const/4 v7, 0x0

    aput-object v7, v5, v6

    invoke-virtual {v2, p0, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_39
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_39} :catch_3a

    .line 52
    .end local v0    # "classes":[Ljava/lang/Class;, "[Ljava/lang/Class<*>;"
    .end local v2    # "method":Ljava/lang/reflect/Method;
    .end local v4    # "translucentConversionListenerClazz":Ljava/lang/Class;, "Ljava/lang/Class<*>;"
    :goto_39
    return-void

    .line 49
    :catch_3a
    move-exception v3

    .line 50
    .local v3, "t":Ljava/lang/Throwable;
    const-string v5, ""

    const-string v6, "convertActivityToTranslucent"

    invoke-static {v5, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_39
.end method
